<template>
	<view class="card-content">
		<view class="row-box">
			<view class="row-box" style="justify-content: flex-start;">
				<image :src="title5" class="head-img"></image>
				<view class="title">{{title1}}</view>
			</view>
			<view class="type-title">{{title2}}</view>
		</view>
		<view class="row-box" style="margin-top: 56rpx;">
			<view class="row-box" style="justify-content: flex-start;">
				<image v-if="title2 === '康复顾问'" src="../static/icon/store2.png" class="icon-img"></image>
				<image v-else src="../static/icon/custom.png" class="icon-img"></image>
				<view class="sub-title">{{title3}}</view>
			</view>
			<view class="name">{{title4}}</view>
		</view>
	</view>
</template>

<script>
	export default {
		name: "my-card",
		props: {
			// 检测类型 + 其他验证
			title1: {
				type: String,

			},
			// 检测类型 + 其他验证
			title2: {
				type: String,

			},
			// 检测类型 + 其他验证
			title3: {
				type: String,

			},
			// 检测类型 + 其他验证
			title4: {
				type: String,

			},
			// 检测类型 + 其他验证
			title5: {
				type: String,

			},
		},

		data() {
			return {
			};
		}
	}
</script>

<style>
	.row-box {
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
	}

	.card-content {
		width: 614rpx;
		height: 167rpx;
		/* background: linear-gradient(132deg, #48AF4E 0%, #3CAC43 100%); */
		background-image: url("http://file.40017.cn/cvg-marketingcenter-bucket/2023/04/28/1682670478528/my-card-bg.png?AWSAccessKeyId=OMO0W0EBD0C2S4M594EI&Expires=4102329600&Signature=zuqcBziXsjNzYB%2BTQ%2B00hPugijU%3D");
		background-size: 100% 100%;
		box-shadow: 0rpx 10rpx 12rpx 0rpx #CBF1CD, 0rpx 1rpx 2rpx 0rpx #42AE48;
		border-radius: 29rpx;
		padding: 34rpx 32rpx 26rpx 30rpx;
		margin: 0 39rpx;
		z-index: 100;
		margin-top: 20rpx;
	}

	.head-img {
		border-radius: 50%;
		width: 74rpx;
		height: 74rpx;
		margin-right: 23rpx;
	}

	.title {
		font-size: 36rpx;
		font-family: PingFangSC-Semibold, PingFang SC;
		font-weight: 600;
		color: #FFFFFF;
		line-height: 51rpx;
	}

	.type-title {
		width: 121rpx;
		height: 50rpx;
		background: #FFFFFF;
		border-radius: 25rpx;
		text-align: center;
		font-size: 25rpx;
		font-family: PingFangSC-Medium, PingFang SC;
		font-weight: 500;
		color: #48AF4E;
		line-height: 50rpx;
	}

	.icon-img {
		width: 23rpx;
		height: 24rpx;
	}

	.sub-title {
		font-size: 27rpx;
		font-family: PingFangSC-Regular, PingFang SC;
		font-weight: 400;
		color: #FFFFFF;
		line-height: 37rpx;
		margin-left: 10rpx;
	}

	.name {
		font-size: 27rpx;
		font-family: PingFangSC-Regular, PingFang SC;
		font-weight: 400;
		color: #FFFFFF;
		margin-right: 10rpx;
		float: right;
	}
</style>